package com.yupi.springbootinit.utils;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ResMockData {
    public static List<Map<String, Object>> getMap(){
        List<Map<String, Object>> visitData2 = new ArrayList<>();
        // 第一个数据点
        Map<String, Object> dataPoint1 = new HashMap<>();
        dataPoint1.put("x", "2024-05-19");
        dataPoint1.put("y", 1);
        visitData2.add(dataPoint1);

        // 第二个数据点
        Map<String, Object> dataPoint2 = new HashMap<>();
        dataPoint2.put("x", "2024-05-20");
        dataPoint2.put("y", 6);
        visitData2.add(dataPoint2);

        // 第三个数据点
        Map<String, Object> dataPoint3 = new HashMap<>();
        dataPoint3.put("x", "2024-05-21");
        dataPoint3.put("y", 4);
        visitData2.add(dataPoint3);

        // 第四个数据点
        Map<String, Object> dataPoint4 = new HashMap<>();
        dataPoint4.put("x", "2024-05-22");
        dataPoint4.put("y", 8);
        visitData2.add(dataPoint4);

        // 第五个数据点
        Map<String, Object> dataPoint5 = new HashMap<>();
        dataPoint5.put("x", "2024-05-23");
        dataPoint5.put("y", 3);
        visitData2.add(dataPoint5);

        // 第六个数据点
        Map<String, Object> dataPoint6 = new HashMap<>();
        dataPoint6.put("x", "2024-05-24");
        dataPoint6.put("y", 7);
        visitData2.add(dataPoint6);

        // 第七个数据点
        Map<String, Object> dataPoint7 = new HashMap<>();
        dataPoint7.put("x", "2024-05-25");
        dataPoint7.put("y", 2);
        visitData2.add(dataPoint7);
        return visitData2;
    }
    public static List<Map<String, Object>> getOffLineData(){
        List<Map<String, Object>> offlineData = new ArrayList<>();

        // 第一个数据点
        Map<String, Object> dataPoint1 = new HashMap<>();
        dataPoint1.put("name", "Stores 0");
        dataPoint1.put("cvr", 0.6);
        offlineData.add(dataPoint1);

        // 第二个数据点
        Map<String, Object> dataPoint2 = new HashMap<>();
        dataPoint2.put("name", "Stores 1");
        dataPoint2.put("cvr", 0.2);
        offlineData.add(dataPoint2);

        // 第三个数据点
        Map<String, Object> dataPoint3 = new HashMap<>();
        dataPoint3.put("name", "Stores 2");
        dataPoint3.put("cvr", 0.5);
        offlineData.add(dataPoint3);

        // 第四个数据点
        Map<String, Object> dataPoint4 = new HashMap<>();
        dataPoint4.put("name", "Stores 3");
        dataPoint4.put("cvr", 0.7);
        offlineData.add(dataPoint4);

        // 第五个数据点
        Map<String, Object> dataPoint5 = new HashMap<>();
        dataPoint5.put("name", "Stores 4");
        dataPoint5.put("cvr", 0.9);
        offlineData.add(dataPoint5);

        // 第六个数据点
        Map<String, Object> dataPoint6 = new HashMap<>();
        dataPoint6.put("name", "Stores 5");
        dataPoint6.put("cvr", 0.6);
        offlineData.add(dataPoint6);

        // 第七个数据点
        Map<String, Object> dataPoint7 = new HashMap<>();
        dataPoint7.put("name", "Stores 6");
        dataPoint7.put("cvr", 0.2);
        offlineData.add(dataPoint7);

        // 第八个数据点
        Map<String, Object> dataPoint8 = new HashMap<>();
        dataPoint8.put("name", "Stores 7");
        dataPoint8.put("cvr", 0.4);
        offlineData.add(dataPoint8);

        // 第九个数据点
        Map<String, Object> dataPoint9 = new HashMap<>();
        dataPoint9.put("name", "Stores 8");
        dataPoint9.put("cvr", 0.5);
        offlineData.add(dataPoint9);

        // 第十个数据点
        Map<String, Object> dataPoint10 = new HashMap<>();
        dataPoint10.put("name", "Stores 9");
        dataPoint10.put("cvr", 0.4);
        offlineData.add(dataPoint10);
        return offlineData;
    }

    public static List<Map<String, Object>> getSalesData(){
        List<Map<String, Object>> salesData = new ArrayList<>();

        // 第一个数据点
        Map<String, Object> dataPoint1 = new HashMap<>();
        dataPoint1.put("x", "1月");
        dataPoint1.put("y", 706);
        salesData.add(dataPoint1);

        // 第二个数据点
        Map<String, Object> dataPoint2 = new HashMap<>();
        dataPoint2.put("x", "2月");
        dataPoint2.put("y", 995);
        salesData.add(dataPoint2);

        // 第三个数据点
        Map<String, Object> dataPoint3 = new HashMap<>();
        dataPoint3.put("x", "3月");
        dataPoint3.put("y", 398);
        salesData.add(dataPoint3);

        // 第四个数据点
        Map<String, Object> dataPoint4 = new HashMap<>();
        dataPoint4.put("x", "4月");
        dataPoint4.put("y", 831);
        salesData.add(dataPoint4);

        // 第五个数据点
        Map<String, Object> dataPoint5 = new HashMap<>();
        dataPoint5.put("x", "5月");
        dataPoint5.put("y", 575);
        salesData.add(dataPoint5);

        // 第六个数据点
        Map<String, Object> dataPoint6 = new HashMap<>();
        dataPoint6.put("x", "6月");
        dataPoint6.put("y", 848);
        salesData.add(dataPoint6);

        // 第七个数据点
        Map<String, Object> dataPoint7 = new HashMap<>();
        dataPoint7.put("x", "7月");
        dataPoint7.put("y", 1090);
        salesData.add(dataPoint7);

        // 第八个数据点
        Map<String, Object> dataPoint8 = new HashMap<>();
        dataPoint8.put("x", "8月");
        dataPoint8.put("y", 473);
        salesData.add(dataPoint8);

        // 第九个数据点
        Map<String, Object> dataPoint9 = new HashMap<>();
        dataPoint9.put("x", "9月");
        dataPoint9.put("y", 843);
        salesData.add(dataPoint9);

        // 第十个数据点
        Map<String, Object> dataPoint10 = new HashMap<>();
        dataPoint10.put("x", "10月");
        dataPoint10.put("y", 537);
        salesData.add(dataPoint10);

        // 第十一个数据点
        Map<String, Object> dataPoint11 = new HashMap<>();
        dataPoint11.put("x", "11月");
        dataPoint11.put("y", 932);
        salesData.add(dataPoint11);

        // 第十二个数据点
        Map<String, Object> dataPoint12 = new HashMap<>();
        dataPoint12.put("x", "12月");
        dataPoint12.put("y", 879);
        salesData.add(dataPoint12);
        return salesData;
    }


    public static List<Map<String, Object>> getSalesTypeData() {
        List<Map<String, Object>> salesTypeList = new ArrayList<>();

        // 家用电器
        Map<String, Object> appliance = new HashMap<>();
        appliance.put("x", "注册金额");
        appliance.put("y", 4544);
        salesTypeList.add(appliance);

        // 食用酒水
        Map<String, Object> beverage = new HashMap<>();
        beverage.put("x", "年利润");
        beverage.put("y", 3321);
        salesTypeList.add(beverage);

        // 个护健康
        Map<String, Object> healthCare = new HashMap<>();
        healthCare.put("x", "贷款金额");
        healthCare.put("y", 3113);
        salesTypeList.add(healthCare);

        // 服饰箱包
        Map<String, Object> clothing = new HashMap<>();
        clothing.put("x", "月利润");
        clothing.put("y", 2341);
        salesTypeList.add(clothing);

        // 母婴产品
        Map<String, Object> babyProducts = new HashMap<>();
        babyProducts.put("x", "成本趋势");
        babyProducts.put("y", 1231);
        salesTypeList.add(babyProducts);

        // 其他
        Map<String, Object> others = new HashMap<>();
        others.put("x", "其他");
        others.put("y", 1231);
        salesTypeList.add(others);

        return salesTypeList;
    }

}
